home *** CD-ROM | disk | FTP | other *** search
/ .net 2000 August / NET74.ISO / pc / Software / JavaApplet / AnfyMacBeta1.sea / Anfy for Macintosh / anjavapp / bookflip / bookflip.txt < prev    next >
Encoding:
Text File  |  1999-07-05  |  6.9 KB  |  175 lines  |  [TEXT/ttxt]

  1.  
  2.             BookFlip - Copyright (C) by Fabio Ciucci 1998/99
  3.  
  4.  
  5. This applet can execute a "book flip" transition between any identically
  6. sized GIF or JPG images.
  7.  
  8. It is based on original code by Dolf Van Der Schaar, which is used under
  9. license.
  10.  
  11. ************************************************************************
  12.  
  13. NECESSARY FILES.
  14.  
  15. Apart from bookflip images, and an optional overlay image, the following
  16. 3 ".class" files must be uploaded: 
  17.  
  18. bookflip.class
  19. Lware.class
  20. anfy.class
  21.  
  22. Plus, bookflip.jar for speedy loading on recent browsers.
  23.  
  24. *********************************************************************
  25.  
  26. EXAMPLE.
  27.  
  28. Insert the <applet> tag in your html document as follows to add this applet
  29. to your page (Comments after the ";" symbol are code explanations and
  30. acceptable min/max values. They are not part of the applet language):
  31.  
  32.  
  33. <applet archive="bookflip.jar" code="bookflip.class" width="140" height="305">
  34. <param name="credits" value="Applet by Fabio Ciucci (www.anfyteam.com)">
  35. <param name="regcode" value="NO">          ; Registration code (if you have it)
  36. <param name="regnewframe" value="YES">     ; Reglink opened in new frame?
  37. <param name="regframename" value="_blank"> ; Name of new frame for reglink
  38. <param name="res" value="1">               ; resolution (1-8)
  39. <param name="image1" value="book1.jpg">    ; Image 1 to load
  40. <param name="image2" value="book2.jpg">    ; Image 2 to load
  41. <param name="image3" value="book3.jpg">    ; Image 3 to load
  42. <param name="link1" value="http://www.anfyteam.com">  ; Link 1
  43. <param name="link2" value="NO">                       ; Link 2
  44. <param name="link3" value="http://www.anfyteam.com">  ; Link 3
  45. <param name="statusmsg1" value="anfy 1">   ; statusbar msg on image 1
  46. <param name="statusmsg2" value="anfy 2">   ; statusbar msg on image 2
  47. <param name="statusmsg3" value="anfy 3">   ; statusbar msg on image 3
  48. <param name="flip1" value="4">             ; Flip effect img 1 (0 .. 7)
  49. <param name="flip2" value="2">             ; Flip effect img 2 (0 .. 7)
  50. <param name="flip3" value="7">             ; Flip effect img 3 (0 .. 7)
  51. <param name="speed" value="4">             ; speed of fade (1-255)
  52. <param name="pause" value="1000">          ; pause (value = milliseconds).
  53. <param name="extrah" value="80">           ; Extra height (applet w. - img w)
  54. <param name="flipcurve" value="2">         ; Flip curve (1 .. 10)
  55. <param name="shading" value="0">           ; Shading (0 .. 4)
  56. <param name="backr" value="64">            ; Red in background (0 .. 255)
  57. <param name="backg" value="96">            ; Green in background (0 .. 255)
  58. <param name="backb" value="160">           ; Blue in background (0 .. 255)
  59. <param name="overimg" value="NO">          ; Optional image over applet
  60. <param name="overimgX" value="0">          ; Over image X offset
  61. <param name="overimgY" value="0">          ; Over image Y offset
  62. <param name="memdelay" value="1000">       ; Memory deallocation delay
  63. <param name="priority" value="3">          ; Task priority (1..10)
  64. <param name="MinSYNC" value="10">          ; Min. milliseconds/frame for sync
  65. Sorry, your browser doesn't support Java ; Msg in no java browsers
  66. </applet>
  67.  
  68.                              
  69. *********************************************************************
  70.  
  71. PARAMETER DESCRIPTIONS.
  72.  
  73. The following instructions describe how to change parameters:
  74.  
  75. The images (GIF and/or JPG) can be of any size, but all image dimensions must
  76. be identical.
  77.  
  78. Attempting to change the credit parameter will disable the applet.
  79. To activate the reg parameters read the shareware registration notes.
  80. In the "regcode" parameter, place the registration code you
  81. purchased from the author. If the code is correct and the applet is run from
  82. the registered domain name, you can use "link" parameters to link to a URL
  83. when the applet is "clicked".
  84.  
  85. If you set "regnewframe" to "YES", you can specify a specific frame location
  86. for the reglink:
  87.  
  88. "_blank"  : To load the link in a new blank unnamed browser window.
  89. "_self"   : To load the link into the same window the applet occupies.
  90. "_parent" : To load the link into the immediate FRAMESET parent.
  91. "_top"    : To load the link into the top body of the window.
  92.  
  93. You can also set a custom frame name, such as "myframe1".
  94.  
  95. With the "overimg" parameter you can specify the name of an image that will
  96. be painted over the applet. The best options are transparent GIF images.
  97. NOTE: Animated GIF images are supported, but will be displayed as animated
  98. only on latest browsers (Netscape 4 and Explorer 4 or newer).
  99. With "overimgX" and "overimgY" you can center the image over the applet area.
  100.  
  101. Applet size is determined by "res": "res=1" shows the graphic at original 
  102. size, "res=2" shows it at double size, etc.
  103.  
  104. The "width" tag must be equal to images width.
  105. The "height" tag must be equal to images height + extrah parameter.
  106. The extrah gives an extra space above and below the image area.
  107.  
  108. For example, if images are 100 pixels in height, and you place a value of
  109. 50 for extrah, the applet "height" must be 150.
  110.  
  111. It is important to update the width and height tags, otherwise the applet
  112. will not display properly on browsers.
  113.  
  114. The number of images for the crossfading slideshow is unlimited, but
  115. the minimum is 2.
  116.  
  117. If you want to fade among just 2 images, type:
  118.  
  119. <param name=image1 value="imfad1.gif">
  120. <param name=image2 value="imfad2.gif">
  121.  
  122. If you want to fade among 3 images, type:
  123.  
  124. <param name=image1 value="imfad1.gif">
  125. <param name=image2 value="imfad2.gif">
  126. <param name=image3 value="imfad3.gif">
  127.  
  128. Repeat the code for each image. 
  129.  
  130. On each image, you can choose the kind of transition, using flip1, flip2,
  131. flip3, ... etc parameters.
  132.  
  133. There are 8 transtition effects, each of which corresponds to a value 
  134. between 0 and 7:
  135.        
  136. 0: IN -> up-right
  137. 1: IN -> down-right
  138. 2: IN -> down-left
  139. 3: IN -> up-left
  140. 4: OUT -> down-left
  141. 5: OUT -> up-left
  142. 6: OUT -> up-right
  143. 7: OUT -> down-right
  144.  
  145. With "flipcurve" parameter, you can control how big the flipping curve is.
  146.  
  147. Placing in the "shading" parameter a value higher than 0, you will enable
  148. an extra shading effect. This will slow down the applet in most cases.
  149.  
  150. You can set a message for each image in the "statusmsg" code. "Statusmsg1"
  151.  is the message displayed with the first image, "statusmsg2" the second 
  152. image, etc.
  153.  
  154. When you purchase and register the applet, the "link1","link2", etc.
  155. parameters are enabled and this applet can become a crossfade banner as
  156. follows:
  157.  
  158. <param name=link1 value="http://(name of link">
  159. <param name=link2 value="http://(name of link">
  160. You can place a URL link related to each image.
  161.  
  162. The speed parameter determines the speed of fade between images. You need
  163. to specify the number of frames. A good value is 8, but not determined.
  164.  
  165. The "pause" parameter, in milliseconds, determines the "hold" time for
  166.  images between the fades.
  167.  
  168. If "extrah" is greater than 0, remember to set the background colour at the
  169. same as the html page colour.
  170.  
  171. With "backr", "backg" and "backb" parameters, you can control the RED, GREEN
  172. and BLUE components of the background colour.
  173.  
  174.  
  175.